<template>
  <a-config-provider :theme="theme">
    <router-view />
  </a-config-provider>
</template>

<script setup lang="ts">
import { onMounted } from 'vue'
import { useUserStore } from '@/stores/user'
import { reactive } from 'vue'

const userStore = useUserStore()

onMounted(() => {
  // 应用启动时初始化用户状态
  userStore.initUserState()
})

const theme = reactive({
  token: {
    // 与 CSS 变量保持一致，后续可按 Figma 精细化更新
    colorPrimary: '#1677ff',
    borderRadius: 8
  }
})
</script>

<style>
</style>